package com.bungarus.busi;

import com.bungarus.Busi;
import com.bungarus.config.ChannelServerInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * Created by tang on 2018/11/25.
 */
public class BusiServerChildHandlerInitializer extends ChannelServerInitializer {
    private final Busi busi;
    private final ProcessMessageHandler processMsgHandler;

    public BusiServerChildHandlerInitializer(Busi busi) {
        this.busi = busi;
        this.processMsgHandler = new ProcessMessageHandler(busi);
    }

    @Override
    protected void initServerServiceHandlers(SocketChannel socketChannel) {
        socketChannel.pipeline().addLast(processMsgHandler);
    }

    @Override
    protected void initNormalHandlers(SocketChannel socketChannel) {

    }
}
